gadgetgettexteditorxpos#()
Description:
Get the horizontal ( x ) position for the view area in gadgettexteditor(), gadgettextselection() gadgets.
Note: this command will only work with the gadgettexteditor() or gadgettextselection() gadget.
Syntax:
Required syntax: |
| xpos/xpos# = gadgetgettexteditorxpos#( gadgethandle )
|
Optional syntax: |
| xpos/xpos# = gadgetgettexteditorxpos#( gadgethandle , [ pixel_position ] )
|
Parameters:
Required parameters |
Description |
|
| gadgethandle | The handle to the gadget´s view area, you wish to get the horizontal position of | |
Optional parameters |
Description |
Default |
| pixel_position | Boolean value to set if the returned value should be in
percentage across, or pixels across (percentage across = 0 / pixels across = 1) |
0 |
Returns:
Either a real number as percentage across (0.5 = 50 % = halfway across )
Or an integer as pixels across
Example: